<#include "../head.ftl">
<div class="page_title">数据字典管理 > 新建数据字典条目</div>
<div class="button_bar">
    <button class="common_button" onclick="help('');">帮助</button>
    <button class="common_button" onclick="back();">返回</button>
    <button class="common_button" onclick="document.forms[0].submit();">保存</button>
</div>
<form action="${base}/dictionary/save" method="post">
    <table class="query_form_table">
        <tr>
            <th>编号</th>
            <td><input readonly name="id" value="${dict.id}"/></td>
            <th>类别</th>
            <td><input type="text" name="type" value="${dict.type}"/><span class="red_star">*</span><br />（需要使用Ajax实现自动补全功能）</td>
        </tr>
        <tr>
            <th>条目</th>
            <td><input type="text" name="items" value="${dict.items}"/><span class="red_star">*</span></td>
            <th>值</th>
            <td><input type="text" name="value" value="${dict.value}"/><span class="red_star">*</span></td>
        </tr>
        <tr>
            <th>是否可编辑</th>
            <td><input type="checkbox" name="status" value="1" <#if dict.status == 1>checked</#if>/></td>
            <th>&nbsp;</th>
            <td>&nbsp;</td>
        </tr>
    </table>
</form>
</body>
</html>